<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html>
<html>
<head lang="en">
<base href="<%=basePath%>"/>
  <meta charset="UTF-8">
  <title>公告页面</title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <meta name="format-detection" content="telephone=no">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp"/>
  
   <link href="css/admin.css" rel="stylesheet" type="text/css">
   <link href="css/amazeui.css" rel="stylesheet" type="text/css">
   <link href="css/personal.css" rel="stylesheet" type="text/css">
   <style>
     		.xx{
     			overflow: hidden;
     			text-overflow: ellipsis;
     			white-space: nowrap;
     		}
     </style>
</head>
<body>
		<!--头 -->
		<jsp:include page="common/header.jsp"/>
			<b class="line"></b>	
<!--文章 -->
<div class="am-g am-g-fixed blog-g-fixed bloglist" style="margin-top:20px;">
  <div class="am-u-md-9">
    <article class="blog-main">
      <h3 class="am-article-title blog-title">
        <a href="#">${announce.anntitle}</a>
      </h3>
      	<span class="am-article-meta blog-meta">发布时间：<fmt:formatDate value="${announce.createtime}" pattern="yyyy-MM-dd HH:mm:ss"/></span>

      <div class="am-g blog-content">
        <div class="am-u-sm-12">
          <p>${announce.anncontent}</p>
        </div>
  
      </div>

    </article>


    <hr class="am-article-divider blog-hr">
    <ul class="am-pagination blog-pagination">
      <li class="am-pagination-prev"><a href="">&laquo; 上一页</a></li>
      <li class="am-pagination-next"><a href="">下一页 &raquo;</a></li>
    </ul>
  </div>

  <div class="am-u-md-3 blog-sidebar">
    <div class="am-panel-group">

      <section class="am-panel am-panel-default">
	        <div class="am-panel-hd">最新公告</div>
	        <ul class="am-list blog-list">
		        <c:forEach var="ls" items="${list}" end="5">
		        	<li class="xx"><a href="/annount/selectByPrimaryKey?annid=${ls.annid}&flag=3"><p>${ls.anntitle }</p></a></li>  
		        </c:forEach>
	        </ul>
	      </section>

    </div>
  </div>

</div>

<jsp:include page="common/footer.jsp"/>

<!--[if lt IE 9]>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="{{assets}}js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->

<!--[if (gte IE 9)|!(IE)]><!-->
<script src="../AmazeUI-2.4.2/assets/js/jquery.min.js"></script>
<!--<![endif]-->
<script src="../AmazeUI-2.4.2/assets/js/amazeui.min.js"></script>

</body>
</html>
